import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useMonitorStore = defineStore('monitor', () => {
  const monitorData = ref({})
  
  const fetchData = async () => {
    try {
      // 这里实现数据获取逻辑
      // const response = await api.getMonitorData()
      // monitorData.value = response.data
    } catch (error) {
      console.error('获取监控数据失败:', error)
    }
  }

  return {
    monitorData,
    fetchData
  }
}) 